package com.yun.zf.common.admin.model.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@NoArgsConstructor               //无参构造
@AllArgsConstructor
public class RoleAddMo {
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    @Size(min = 0, max = 30, message = "角色名称长度不能超过30个字符")
    private String roleName;

    @ApiModelProperty(value = "角色权限")
    @NotBlank(message = "权限字符不能为空")
    @Size(min = 0, max = 100, message = "权限字符长度不能超过100个字符")
    private String roleKey;

    @ApiModelProperty(value = "角色排序")
    @NotBlank(message = "显示顺序不能为空")
    private String roleSort;

    @ApiModelProperty(value = "角色状态")
    private String status;
    @ApiModelProperty(value = "角色菜单数组")
    private String[] menuIds;
    @ApiModelProperty(value = "备注")
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime=new Date();
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime=new Date();


}
